package com.CNMedical.system.service;

import java.util.List;

import com.CNMedical.common.core.domain.R;
import com.CNMedical.system.domain.entity.AppletLearningHistory;
import com.CNMedical.system.domain.vo.AppletLearningHistoryVO;

/**
 * 学习历史Service接口
 * 
 * @author tang
 * @date 2023-03-28
 */
public interface IAppletLearningHistoryService 
{

    R addLearningHistory(AppletLearningHistory appletLearningHistory);
    List<AppletLearningHistoryVO> getLearningHistoryByUserId(String userId);
    /**
     * 查询学习历史
     * 
     * @param id 学习历史主键
     * @return 学习历史
     */
    public AppletLearningHistory selectAppletLearningHistoryById(Long id);

    /**
     * 查询学习历史列表
     * 
     * @param appletLearningHistory 学习历史
     * @return 学习历史集合
     */
    public List<AppletLearningHistory> selectAppletLearningHistoryList(AppletLearningHistory appletLearningHistory);

    /**
     * 新增学习历史
     * 
     * @param appletLearningHistory 学习历史
     * @return 结果
     */
    public int insertAppletLearningHistory(AppletLearningHistory appletLearningHistory);

    /**
     * 修改学习历史
     * 
     * @param appletLearningHistory 学习历史
     * @return 结果
     */
    public int updateAppletLearningHistory(AppletLearningHistory appletLearningHistory);

    /**
     * 批量删除学习历史
     * 
     * @param ids 需要删除的学习历史主键集合
     * @return 结果
     */
    public int deleteAppletLearningHistoryByIds(Long[] ids);

    /**
     * 删除学习历史信息
     * 
     * @param id 学习历史主键
     * @return 结果
     */
    public int deleteAppletLearningHistoryById(Long id);
}
